home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / linux-sound-base.postinst < prev    next >
Text File  |  2009-10-11  |  859b  |  41 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. . /usr/share/debconf/confmodule
  6. db_version 2.0
  7.  
  8. case "$1" in
  9. configure|reconfigure)
  10.     db_get linux-sound-base/sound_system || :
  11.     case "$RET" in
  12.     OSS)
  13.         rm -f /etc/modprobe.d/blacklist-oss.conf
  14.         rm -f /etc/modprobe.d/blacklist-oss
  15.         rm -f /etc/modprobe.d/linux-sound-base_noOSS
  16.         ln -sf /lib/linux-sound-base/noALSA.modprobe.conf \
  17.             /etc/modprobe.d/blacklist-alsa.conf
  18.         ;;
  19.     ALSA)
  20.         rm -f /etc/modprobe.d/blacklist-alsa.conf
  21.         rm -f /etc/modprobe.d/blacklist-alsa
  22.         rm -f /etc/modprobe.d/linux-sound-base_noALSA
  23.         ln -sf /lib/linux-sound-base/noOSS.modprobe.conf \
  24.             /etc/modprobe.d/blacklist-oss.conf
  25.         ;;
  26.     esac
  27.     ;;
  28. abort-upgrade|abort-remove|abort-deconfigure)
  29.     # We don't have to do anything because we didn't do anything in prerm
  30.     exit 0
  31.     ;;
  32. *)
  33.     echo "postinst called with unknown argument \`$1'" >&2
  34.     exit 1
  35.     ;;
  36. esac
  37.  
  38.  
  39.  
  40. db_stop || :
  41.